package com.campus.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.campus.entry.ManagerTeacher;
import com.campus.pojo.dto.TeacherDto;
import io.swagger.v3.oas.models.security.SecurityScheme;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.jmx.export.annotation.ManagedNotifications;

import java.util.List;

@Mapper
public interface ManagerTeacherMapper extends BaseMapper<ManagerTeacher> {
    List<ManagerTeacher> getTeacherBy(TeacherDto teacherDto);
    @Select("select id from t_manager_teacher where login_id=#{loginId}")
    Integer getTeacherIdByLoginId(@Param("loginId") Integer loginId);
}
